package $2024_3_18.Demo2;

public class Circle extends Graph{
    private double radius;

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public Circle(double radius) {
        super.draw();
        this.radius = radius;
    }
    public double findArea2(){
        return radius * radius * Math.PI;
    }
}
